cmake_minimum_required(VERSION 3.28)
project(code_mountain_wars)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE DEBUG)
set(CMAKE_CXX_FLAGS_DEBUG "-g3")
set(CMAKE_C_FLAGS_DEBUG "-g3")

#[[
请不要在add_executable里面放头文件,谢谢
如果再这么干,我把他脑袋拧下来
]]
add_executable(code-mountain-wars
        Games/Base/Move.cpp
        Games/Base/resource.cpp
        Games/Base/unit.cpp
        Games/Base/Tag.cpp
        Games/Base/exception.cpp
        Games/Base/group.cpp
        Games/Building/ABSbuilding.cpp
        Games/Building/building/mine.cpp
        Games/MapBuild/AbstractMapBuild.cpp
        main.cpp
        Games/Component/Component.cpp
        Games/Component/Armor/Armor.cpp
        Games/Component/Barrel/Barrel.cpp
        Games/Component/Pivot/Pivot.cpp
        Games/Component/Chassis/Chassis.cpp
        Games/Soldier/Soldier.cpp
        Games/Component/Bullet/BulletTrigger.cpp
)

include_directories(code_mountain_wars Games Games/Base)
